Do not draw frame if parent if combobox. (draw_box): Uses scrollbar width
authorAlberto Ruiz <aruiz@gnome.org>
Sat, 8 Mar 2008 07:20:33 +0000 (07:20 +0000)
committerAlberto Ruiz <aruiz@src.gnome.org>
Sat, 8 Mar 2008 07:20:33 +0000 (07:20 +0000)
2008-03-08  Alberto Ruiz  <aruiz@gnome.org>

* modules/engines/ms-windows/msw_style.c (draw_shadow):
Do not draw frame if parent if combobox.
(draw_box):
Uses scrollbar width system metrics for combobox button.
Fixes #461805 for XP theme engine.

svn path=/trunk/; revision=19733

ChangeLog
modules/engines/ms-windows/msw_style.c

index cac78065bd66dedbe3b1adff80d7b352ce4deba9..a845af3477b48128a4e485e30a31f9c69c2aa634 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-03-08  Alberto Ruiz  <aruiz@gnome.org>
+
+       * modules/engines/ms-windows/msw_style.c (draw_shadow):
+       Do not draw frame if parent if combobox.
+       (draw_box):
+       Uses scrollbar width system metrics for combobox button.
+       Fixes #461805 for XP theme engine.
+
 2008-03-07  Johan Dahlin  <johan@gnome.org>
 
        * gtk/gtkbuilder.c:
index 9c11b75bfc375f85ce5cd6e7101b358292b548c2..3f4dcb377a2c3c5a6c04eceeee8bad251c872aca 100755 (executable)
@@ -1980,7 +1980,7 @@ draw_box (GtkStyle *style,
       FillRect (dc, &rect, GetSysColorBrush (COLOR_WINDOW));
       release_window_dc (style, window, state_type);
 
-      cx = 2 * GetSystemMetrics (SM_CXEDGE) + 16;      /* TODO evaluate arrow width */
+      cx = GetSystemMetrics(SM_CXVSCROLL);
       x += width - cx;
       width = cx;
 
@@ -2946,8 +2946,13 @@ draw_shadow (GtkStyle *style,
 
   if (detail && !strcmp (detail, "frame"))
     {
       HDC dc;
       RECT rect;
+
+      if (is_combo_box_child (widget))
+        return; 
+
       dc = get_window_dc (style, window, state_type, x, y, width, height, &rect);
 
       if (is_popup_window_child (widget))